﻿#ifndef FORWARD_CONTROL_H
#define FORWARD_CONTROL_H

#include <QObject>
#include <QMultiMap>
#include "forward_node.h"

//这个类用于管理每个app的forward
class Forward_Control : public QObject
{
    Q_OBJECT
public:
    explicit Forward_Control(QObject *parent = nullptr);
    
public slots:
    //控制中心开启端口
    void openPort(QJsonObject info);
    //关闭端口
    void closePort(QJsonObject info);
private:
    QMultiMap<int,Forward_Node*> m_NodeMap;
signals:
    void releaseNode(Forward_Node* node);
};

#endif // FORWARD_CONTROL_H
